package com.share.finance.risk.rules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.common.common.Page;
import com.share.finance.risk.rules.model.db.ProjectHist;
import com.share.finance.risk.rules.model.vo.ProjectHistPageReq;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2023-12-25
 */
public interface IProjectHistService extends IService<ProjectHist> {

    Page<ProjectHist> pageList(ProjectHistPageReq req);

    Map<Long, ProjectHist> mapByProjectIds(Set<Long> projectIds, Integer status);

    Integer saveFlow(Long projectId,String version, List<Long> strategyIds, Boolean isAdd);

    List<ProjectHist> listByProjectIdAndVersion(Long projectId, String version, Integer status);
}
